package com.cn.xiaonuo.sys.modular.news.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data

@TableName(value = "t_tag")
public class Tag {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    private String name;

    @TableField(exist = false)
    private List<News> news = new ArrayList<>();
}
